/*
*
* TSysUserRoleMapper.java
* Copyright(C) 2017-2020 fendo公司
* @date 2019-04-09
*/
package com.mass.core.sys.roleUser.dao;

import com.mass.core.sys.roleUser.model.TSysUserRole;
import com.mass.core.sys.roleUser.model.TSysUserRoleExample;
import com.mass.core.sys.roleUser.model.TSysUserRoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface TSysUserRoleMapper {

    /**
     * 连表查询用户和角色
     * @return
     */
    List<TSysUserRoleVo> selectRoleAndUser();

    /**
     *
     * @mbg.generated
     */
    long countByExample(TSysUserRoleExample example);

    /**
     *
     * @mbg.generated
     */
    int deleteByExample(TSysUserRoleExample example);

    /**
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated
     */
    int insert(TSysUserRole record);

    /**
     *
     * @mbg.generated
     */
    int insertSelective(TSysUserRole record);

    /**
     *
     * @mbg.generated
     */
    List<TSysUserRole> selectByExample(TSysUserRoleExample example);

    /**
     *
     * @mbg.generated
     */
    TSysUserRole selectByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") TSysUserRole record, @Param("example") TSysUserRoleExample example);

    /**
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") TSysUserRole record, @Param("example") TSysUserRoleExample example);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(TSysUserRole record);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(TSysUserRole record);
}